<?php
$tdatathongtincongty=array();
	$tdatathongtincongty[".NumberOfChars"]=80; 
	$tdatathongtincongty[".ShortName"]="thongtincongty";
	$tdatathongtincongty[".OwnerID"]="";
	$tdatathongtincongty[".OriginalTable"]="thongtincongty";


	
//	field labels
$fieldLabelsthongtincongty = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsthongtincongty["English"]=array();
	$fieldToolTipsthongtincongty["English"]=array();
	$fieldLabelsthongtincongty["English"]["tieude"] = "Tieude";
	$fieldToolTipsthongtincongty["English"]["tieude"] = "";
	$fieldLabelsthongtincongty["English"]["noidung"] = "Noidung";
	$fieldToolTipsthongtincongty["English"]["noidung"] = "";
	if (count($fieldToolTipsthongtincongty["English"])){
		$tdatathongtincongty[".isUseToolTips"]=true;
	}
}


	
	$tdatathongtincongty[".NCSearch"]=true;

	

$tdatathongtincongty[".shortTableName"] = "thongtincongty";
$tdatathongtincongty[".nSecOptions"] = 0;
$tdatathongtincongty[".recsPerRowList"] = 1;	
$tdatathongtincongty[".tableGroupBy"] = "0";
$tdatathongtincongty[".mainTableOwnerID"] = "";
$tdatathongtincongty[".moveNext"] = 1;




$tdatathongtincongty[".showAddInPopup"] = false;

$tdatathongtincongty[".showEditInPopup"] = false;

$tdatathongtincongty[".showViewInPopup"] = false;


$tdatathongtincongty[".fieldsForRegister"] = array();

$tdatathongtincongty[".listAjax"] = false;

	$tdatathongtincongty[".audit"] = false;

	$tdatathongtincongty[".locking"] = false;
	
$tdatathongtincongty[".listIcons"] = true;
$tdatathongtincongty[".edit"] = true;
$tdatathongtincongty[".inlineEdit"] = true;
$tdatathongtincongty[".view"] = true;

$tdatathongtincongty[".exportTo"] = true;

$tdatathongtincongty[".printFriendly"] = true;

$tdatathongtincongty[".delete"] = true;

$tdatathongtincongty[".showSimpleSearchOptions"] = false;

$tdatathongtincongty[".showSearchPanel"] = true;


$tdatathongtincongty[".isUseAjaxSuggest"] = true;

$tdatathongtincongty[".rowHighlite"] = true;


// button handlers file names

$tdatathongtincongty[".addPageEvents"] = false;

$tdatathongtincongty[".arrKeyFields"][] = "tieude";

// use datepicker for search panel
$tdatathongtincongty[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatathongtincongty[".isUseTimeForSearch"] = false;

$tdatathongtincongty[".isUseiBox"] = false;



$tdatathongtincongty[".isUseInlineAdd"] = true;

$tdatathongtincongty[".isUseInlineEdit"] = true;
$tdatathongtincongty[".isUseInlineJs"] = $tdatathongtincongty[".isUseInlineAdd"] || $tdatathongtincongty[".isUseInlineEdit"];

$tdatathongtincongty[".allSearchFields"] = array();

$tdatathongtincongty[".globSearchFields"][] = "tieude";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieude", $tdatathongtincongty[".allSearchFields"]))
{
	$tdatathongtincongty[".allSearchFields"][] = "tieude";	
}


$tdatathongtincongty[".googleLikeFields"][] = "tieude";



$tdatathongtincongty[".advSearchFields"][] = "tieude";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieude", $tdatathongtincongty[".allSearchFields"])) 
{
	$tdatathongtincongty[".allSearchFields"][] = "tieude";	
}
$tdatathongtincongty[".advSearchFields"][] = "noidung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noidung", $tdatathongtincongty[".allSearchFields"])) 
{
	$tdatathongtincongty[".allSearchFields"][] = "noidung";	
}

$tdatathongtincongty[".isTableType"] = "list";


	

$tdatathongtincongty[".isDisplayLoading"] = true;

$tdatathongtincongty[".isResizeColumns"] = false;





$tdatathongtincongty[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatathongtincongty[".strOrderBy"] = $gstrOrderBy;
	
$tdatathongtincongty[".orderindexes"] = array();

$tdatathongtincongty[".sqlHead"] = "SELECT tieude,  noidung";
$tdatathongtincongty[".sqlFrom"] = "FROM thongtincongty";
$tdatathongtincongty[".sqlWhereExpr"] = "";
$tdatathongtincongty[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatathongtincongty[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatathongtincongty[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "tieude";
	$tdatathongtincongty[".Keys"] = $tableKeys;

//	tieude
	$fdata = array();
	$fdata["strName"] = "tieude";
	$fdata["ownerTable"] = "thongtincongty";
		$fdata["Label"]="Tieude"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieude";
	
		$fdata["FullName"]= "tieude";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatathongtincongty["tieude"]=$fdata;
//	noidung
	$fdata = array();
	$fdata["strName"] = "noidung";
	$fdata["ownerTable"] = "thongtincongty";
		$fdata["Label"]="Noidung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noidung";
	
		$fdata["FullName"]= "noidung";
	
		$fdata["IsRequired"]=true; 
	
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 2;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=400";
		$fdata["nRows"] = 400;
			$fdata["EditParams"].= " cols=450";
		$fdata["nCols"] = 450;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatathongtincongty["noidung"]=$fdata;

	
$tables_data["thongtincongty"]=&$tdatathongtincongty;
$field_labels["thongtincongty"] = &$fieldLabelsthongtincongty;
$fieldToolTips["thongtincongty"] = &$fieldToolTipsthongtincongty;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["thongtincongty"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["thongtincongty"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto15=array();
$proto15["m_strHead"] = "SELECT";
$proto15["m_strFieldList"] = "tieude,  noidung";
$proto15["m_strFrom"] = "FROM thongtincongty";
$proto15["m_strWhere"] = "";
$proto15["m_strOrderBy"] = "";
$proto15["m_strTail"] = "";
$proto16=array();
$proto16["m_sql"] = "";
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto16["m_column"]=$obj;
$proto16["m_contained"] = array();
$proto16["m_strCase"] = "";
$proto16["m_havingmode"] = "0";
$proto16["m_inBrackets"] = "0";
$proto16["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto16);

$proto15["m_where"] = $obj;
$proto18=array();
$proto18["m_sql"] = "";
$proto18["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto18["m_column"]=$obj;
$proto18["m_contained"] = array();
$proto18["m_strCase"] = "";
$proto18["m_havingmode"] = "0";
$proto18["m_inBrackets"] = "0";
$proto18["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto18);

$proto15["m_having"] = $obj;
$proto15["m_fieldlist"] = array();
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "tieude",
	"m_strTable" => "thongtincongty"
));

$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto15["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "noidung",
	"m_strTable" => "thongtincongty"
));

$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto15["m_fieldlist"][]=$obj;
$proto15["m_fromlist"] = array();
												$proto24=array();
$proto24["m_link"] = "SQLL_MAIN";
			$proto25=array();
$proto25["m_strName"] = "thongtincongty";
$proto25["m_columns"] = array();
$proto25["m_columns"][] = "tieude";
$proto25["m_columns"][] = "noidung";
$obj = new SQLTable($proto25);

$proto24["m_table"] = $obj;
$proto24["m_alias"] = "";
$proto26=array();
$proto26["m_sql"] = "";
$proto26["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto26["m_column"]=$obj;
$proto26["m_contained"] = array();
$proto26["m_strCase"] = "";
$proto26["m_havingmode"] = "0";
$proto26["m_inBrackets"] = "0";
$proto26["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto26);

$proto24["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto24);

$proto15["m_fromlist"][]=$obj;
$proto15["m_groupby"] = array();
$proto15["m_orderby"] = array();
$obj = new SQLQuery($proto15);

$queryData_thongtincongty = $obj;
$tdatathongtincongty[".sqlquery"] = $queryData_thongtincongty;

$tableEvents["thongtincongty"] = new eventsBase;

?>
